<template>
    <div class='gj-wrapper'>
        <slot>
           <top/>
        </slot>
    </div>
</template>
<script>
import top from './top'
export default {
    components:{
        top,
    },
    methods:{
        toTop(){
            var topp = document.documentElement.scrollTop;
            var intval = setInterval(()=>{
                scrollTo(0,topp-=20);
                if(topp<0){
                    clearInterval(intval);
                }
            },10);
        }
    }
}
</script>
<style lang="less" scoped >
    .gj-wrapper {
        position:fixed;
        bottom: 40px;
        right: 40px;
    }
</style>
